import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { SharedModule } from './../shared/shared.module';
import { DraggableModule } from '../draggable/draggable.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { TrainsRoutingModule } from './trains-routing.module';
import { SbcmaterialModule } from './../sbcmaterial/sbcmaterial.module';
import { AgGridModule } from 'ag-grid-angular/main';
import { TrainsComponent } from './trains/trains.component';
import { TraininfoDialogComponent } from './traininfo-dialog/traininfo-dialog.component';
import { AggridNavCellComponent } from '../shared/aggrid-nav-cell/aggrid-nav-cell.component';

@NgModule({
  imports: [
    CommonModule,
    SbcmaterialModule,
    AgGridModule.withComponents([
      AggridNavCellComponent
    ]),
    SharedModule,
    DraggableModule,
    FormsModule,
    ReactiveFormsModule,
    TrainsRoutingModule
  ],
  declarations: [
    TrainsComponent,
    TraininfoDialogComponent
  ],
  entryComponents: [
    TraininfoDialogComponent
  ]
})
export class TrainsModule { }
